package com.resume.aipeople.dto;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ChatResponse {
    
    private String sessionId;
    
    private String message;
    
    private String audioUrl; // TTS生成的音频URL
    
    private String skillUsed; // 使用的AI技能
    
    private String emotionDetected; // 检测到的用户情感
    
    private Long responseTime; // 响应时间
    
    private CharacterDTO character; // 角色信息
    
    private boolean success = true;
    
    private String errorMessage;
    
    // 错误响应构造函数
    public ChatResponse(String errorMessage) {
        this.success = false;
        this.errorMessage = errorMessage;
    }
    
    // 成功响应构造函数
    public ChatResponse(String sessionId, String message, String skillUsed) {
        this.sessionId = sessionId;
        this.message = message;
        this.skillUsed = skillUsed;
        this.success = true;
    }
} 